function addFunction() {
    var options = {
        "width": 980, "height": 560,
        buttons: [{
            id: "addFunction",
            text: '新增保存',
            handler: function () {
                parent.$.modalDialog.openner_treeGrid = $('#dataGrid');//因为添加成功之后，需要刷新这个treeGrid，所以先预定义好
            }
        },{ text: '返回',
            handler: function () {
                parent.$.modalDialog.handler.dialog('close');
            }
        }]
    }
    addFun("新增采购申请", "/purchase/applicationAdd.html", $('#dataGrid'), options);
}


